package thread;

public class ThreadDemo2 {
    public static void main(String[] args) {
        Runnable b1 = new MyThread1();
        Runnable b2 = new MyThread2();
        Thread t1 = new Thread(b1);
        Thread t2 = new Thread(b2);

        t1.start();
        t2.start();

    }
}

class MyThread1 implements Runnable{
    public void run (){
        for (int i=0;i<1000;i++){
            System.out.println("你是谁呀");
        }
    }
}

class MyThread2 implements Runnable{
    public void run (){
        for (int i=0;i<1000;i++){
            System.out.println("你李四的大哥李三");
        }
    }
}